package com.meng.thrift.server.thrift.inter_impl;

import com.meng.thrift.server.thrift.util.PublishThriftServer;
import com.meng.thrift.server.thrift.inter.HelloWorldService;
import org.apache.thrift.TException;


/**
 * 实现类
 *
 * @author MENG
 * @version 2017/10/31
 * @see
 */
@PublishThriftServer(port = 8191)
public class HwServciceImpl implements HelloWorldService.Iface
{
    @Override
    public String sayHello(String username)
        throws TException
    {

        System.out.println("...执行 HelloWorldService 的 sayHello 方法");

        System.out.println("Thrift 初探...... Author:"+username);

        return "Tomcat 测试成功";
    }
}
